@import "../../base/fn";

$pickerItemHeight: 34px;
.#{$weui_ns}picker {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 5000;
    backface-visibility: hidden;
    transform: translate(0, 100%);
    //slide up animation
    transition: transform .3s;
}

.#{$weui_ns}picker__hd {
    display: flex;
    padding: 9px 15px;
    background-color: #fff;
    position: relative;
    text-align: center;
    font-size: 17px;
    &:after {
        @include setBottomLine($weuiLineColorLight);
    }
}

.#{$weui_ns}picker__action {
    display: block;
    flex: 1;
    color: $weuiLinkColorDefault;

    &:first-child {
        text-align: left;
    }
    &:last-child {
        text-align: right;
    }
}

.#{$weui_ns}picker__bd {
    display: flex;
    position: relative;
    background-color: #fff;
    height: 238px;
    overflow: hidden;
}

.#{$weui_ns}picker__group {
    flex: 1;
    position: relative;
    height: 100%;
    //-webkit-mask-box-image: -webkit-linear-gradient(bottom,transparent,transparent 5%,#fff 50%,#fff 50%,transparent 95%,transparent);
}

.#{$weui_ns}picker__mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 3;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6)), linear-gradient(0deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6));
    background-position: top, bottom;
    background-size: 100% 102px;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.#{$weui_ns}picker__indicator {
    width: 100%;
    height: $pickerItemHeight;
    position: absolute;
    left: 0;
    top: 102px;
    z-index: 3;
    &:before {
        @include setTopLine($weuiLineColorLight);
    }
    &:after {
        @include setBottomLine($weuiLineColorLight);
    }
}

.#{$weui_ns}picker__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.#{$weui_ns}picker__item {
    padding: 0;
    height: $pickerItemHeight;
    line-height: $pickerItemHeight;
    text-align: center;
    color: #000;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.#{$weui_ns}picker__item_disabled {
    color: $weuiTextColorGray;
}
